﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Skyhook.Isometry
{
    internal class World
    {
        int pWidth = 0, pHeight = 0;
        WorldTileMap pTileMap = null;

        public World(int width, int height)
        {
            if (width <= 0 || height <= 0)
            {
                throw new Exception("Incorrect world size (" + width.ToString() + " x " + height.ToString() + ")");
            }

            pWidth = width;
            pHeight = height;

            pTileMap = new WorldTileMap(width,height);
        }
        
        public int ObjectsCount
        {
            get
            {
                return pTileMap.ObjectsCount;
            }
        }

        public int Width
        {
            get
            {
                return pWidth;
            }
        }

        public int Height
        {
            get
            {
                return pHeight;
            }
        }

        public WorldTileMap TileMap
        {
            get
            {
                return pTileMap;
            }
        }
    }
}
